import React from 'react';
import {
  AppRegistry,
  Text,
  View,
  Button
} from 'react-native';

class ChatScreen extends React.Component {
  static navigationOptions=({navigation})=>{
    return ({
      title: '账单',
      headerLeft:<Button  title={'打开侧边栏'} onPress={()=>navigation.navigate('DrawerOpen')}/>,
      gesturesEnabled:true,
      headerBackTitleStyle:{
        color:'#000'
      },
      headerTitleStyle: {
        alignSelf:'center'
        }
    })
  }
  render() {
    return (
      <View>
        <Text>账单</Text>
        <Button
           onPress={() => this.props.navigation.navigate('MyHomeScreen')}
          title="跳转 MyHomeScreen"
        />
      </View>
    );
  }
}

export default ChatScreen
